#pragma once

#include<iostream>
#include<unistd.h>

namespace TaskModule
{
	class Task
	{
	public:
		Task(){}
		Task(int a,int b) :_x(a),_y(b)
		{}

		void Excute()
		{
			sleep(1);
			result = _x + _y; // 任务：未来可以是入库，访问缓存，访问网络，打印日志
		}

		int X() {return _x;} 
		int Y() {return _y;}
		int Result() {return result;}

		~Task(){}

	private:
		int _x;
		int _y;
		int result;
	};
};